home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 473 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  85 lines

  1. Path: hp-3.cae.wisc.edu!tuant
  2. From: tuant@hp-3.cae.wisc.edu (Truong Tuan)
  3. Newsgroups: comp.lang.c++
  4. Subject: [help] Calling BTRIEVE functions in C?Hello,
  5. Date: 4 Jan 1996 18:54:53 GMT
  6. Organization: University of Wisconsin, College of Engineering
  7. Message-ID: <4ch7pt$ut0@news.doit.wisc.edu>
  8. NNTP-Posting-Host: hp-3.cae.wisc.edu
  9.  
  10. I am trying to integrate a DOS application to a WINDOWS application(DYNAMICS).
  11. To do this, I needed to be able to open DYNAMICS' files, which are BTRIEVE files.
  12. However, I could not open the files.  Here is how I did it:
  13.  
  14. ***********MyCode.C********
  15.  
  16. #define BTI_DOS
  17. #include "btrapi.h"
  18.  
  19. int main()
  20. {  
  21.     :
  22.     :
  23.           status = btrv(0,......,..);  //open a btrieve file
  24.     :
  25.     :
  26.     return 0;
  27. }      
  28.  
  29. **********END**********
  30.  
  31. When I compile MyCode.C, using the Turbo C++(ver.4.5), everything went OK. 
  32. However, when I selected RUN (from compiler menu bar) , I got an error message:
  33.  
  34. Error:  Undefine symbol BTRV(..).
  35.  
  36. Questions:
  37.  
  38. 1) Could it be the fact that I did not have the BTRIEVE (DOS version) running
  39.    before I tried to run MyCode.exe?  If so, how do I run BTRIEVE before
  40.    running my program?
  41.  
  42. 2) Do I need the DOS version of BTRIEVE when I already got the WINDOWS version?
  43.  
  44.  
  45. Please help!  If possible, please suggest me a way to work this out.
  46.  
  47. Thank you!
  48.  
  49. Tuan Truong 
  50.  
  51.  
  52. PS: how do I generate .OBJ files from DOS prompt?  I know that I have
  53.     include option(s) when compiling the program, but I don't see any option
  54.     that had the capability to do that.  Please help!
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83. Keywords: 
  84.  
  85.